package com.message.push.provider.common;

import com.fasterxml.jackson.annotation.JsonInclude;

import io.swagger.v3.oas.annotations.media.Schema;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "通用返回结构（无body）")
public class ResultWithoutBody extends Result<Object> {

	public static ResultWithoutBody build() {
		return new ResultWithoutBody();
	}

	@Override
	public ResultWithoutBody code(final int code) {
		this.setCode(code);
		return this;
	}

	@Override
	public ResultWithoutBody message(final String message) {
		this.setMessage(message);
		return this;
	}

	@Override
	public ResultWithoutBody details(final String details) {
		this.setDetails(details);
		return this;
	}

	@Override
	public ResultWithoutBody exception(final Throwable exception) {
		super.setException(exception);
		return this;
	}

}
